<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_index none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="trade" sub="transfer" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_over_x m_flex1">
                <div class="">
                    <ul class="breadcrumbs">
                        <li><span>交易管理</span>&gt;</li>
                        <li><a href="transfer.html">持仓转让</a>&gt;</li>
                        <li class="on">计划详情</li>
                    </ul>
                    <div class="m_search">
                        <input type="text" class="m_input" maxlength="12" v-inputnumber placeholder="转出用户" v-model="out_no">
                        <input type="text" class="m_input" maxlength="12" v-inputnumber placeholder="转入用户" v-model="in_no">
                        <productselect name="藏品名称" all="全部" :col_id.sync="col_id"></productselect>
                        <select class="m_select" v-model="status">
                            <option value="" disabled selected hidden>状态</option>
                            <option value="">全部</option>
                            <option value="0">已取消</option>
                            <option value="1">待处理</option>
                            <option value="2">处理中</option>
                            <option value="3">已成功</option>
                            <option value="4">已失败</option>
                        </select>
                        <button class="m_btn line" v-on:click="reSearch">查询</button>
                        <button class="m_btn line" v-on:click="reset">重置</button>
                    </div>
                    <table class="m_table">
                        <thead>
                            <tr>
                                <th>计划标题</th>
                                <th>转出用户</th>
                                <th>转入用户</th>
                                <th>藏品ID</th>
                                <th>藏品名称</th>
                                <th>转让价格</th>
                                <th>转让数量</th>
                                <th>转出手续费</th>
                                <th>转入手续费</th>
                                <th>状态</th>
                                <th>备注</th>
                                <th>执行时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-if="list.length < 1">
                                <td colspan="13">
                                    <div class="tc">
                                        <template v-if="search">没有符合条件的内容</template>
                                        <template v-else>暂无数据</template>
                                    </div>
                                </td>
                            </tr>
                            <tr v-for="item in list" v-if="list.length > 0">
                                <td>{{ item.plan_name }}</td>
                                <td>{{ item.out_no }}</td>
                                <td>{{ item.in_no }}</td>
                                <td>{{ item.code }}</td>
                                <td><span class="m_textOver">{{ item.col_name }}</span></td>
                                <td>{{ item.price | markMoney }}</td>
                                <td>{{ item.cnt }}</td>
                                <td>{{ item.out_fee | markMoney }}</td>
                                <td>{{ item.in_fee | markMoney }}</td>
                                <td>{{ item.status | tranStatus }}</td>
                                <td>{{ item.remark ? item.remark : '- -' }}</td>
                                <td>{{ item.time ? item.time : '- -' }}</td>
                                <td>
                                    <template v-if="item.status == 1">
                                        <a href="javascript:void(0);" v-on:click="operate(item.id,1)">执行</a>
                                        <a href="javascript:void(0);" v-on:click="operate(item.id,2)">取消</a>
                                    </template>
                                    <template v-else>- -</template>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <pages :cur.sync="cur" :all.sync="all" v-on:btn-click="getData"></pages>
                </div>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>

    <script>
        seajs.use( "../../js/page/trade/transfer_detail" );
    </script>

</body>
</html>
